package com.mv.service;

import com.mv.mapper.WaresMapper;
import com.mv.pojo.Wares;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WaresServiceImpl implements WaresService{
    @Autowired
    private WaresMapper waresMapper;

    @Override
    public List<Wares> getWaresList() {
        return waresMapper.selectList(null);
    }

    @Override
    public Wares getWaresById(Integer id) {
        return waresMapper.selectById(id);
    }
}
